var net = require('net');

var client = net.connect({port:8080}, () => {
	console.log('connect server succeed');
});

client.on('data', (data) => {
	console.log('receive data => ', data.toString());
	client.end();
});

client.on('end', () => {
	console.log('disconnect from server');
});
